package cn.cmcc.intertelecom.bean;

import java.util.Date;


import com.fasterxml.jackson.annotation.JsonFormat;

public class Daily {
    private Integer id;

    private Integer userId;

    private Integer moduleId;

    private String power;

    //@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")  
  @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")  
    private Date dailyTime;
    
    private User user;
    private Module module;
    private Power powers;
    
    

    public Daily(Integer id, Integer userId, Integer moduleId, String power, Date dailyTime) {
		super();
		this.id = id;
		this.userId = userId;
		this.moduleId = moduleId;
		this.power = power;
		this.dailyTime = dailyTime;
	}

	public Daily() {
		super();
		// TODO Auto-generated constructor stub
	}

	public Power getPowers() {
		return powers;
	}

	public void setPowers(Power powers) {
		this.powers = powers;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Module getModule() {
		return module;
	}

	public void setModule(Module module) {
		this.module = module;
	}

	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getModuleId() {
        return moduleId;
    }

    public void setModuleId(Integer moduleId) {
        this.moduleId = moduleId;
    }

    public String getPower() {
        return power;
    }

    public void setPower(String power) {
        this.power = power == null ? null : power.trim();
    }

    public Date getDailyTime() {
        return dailyTime;
    }

    public void setDailyTime(Date dailyTime) {
        this.dailyTime = dailyTime;
    }
}